<?php


/***
 * @param $obj
 * @return float|int 用户排名
 */
function userRanking($grid , $number){

    $page = request()->page ?? 1;
    return $page == 1 ? ($number + 1) : ($page * $grid->perPage - $grid->perPage) + $number + 1;
}

















?>